import "@/mock"
import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'

import "./styles/global.less"
import router from './router'

Vue.use(VueRouter) // 安装插件

// 全局挂载 $前缀
import { showMsg } from '@/utils'
Vue.prototype.$showMsg = showMsg

// 全局注册指令
import loading from "./directives/loading"
Vue.directive("loading", loading)

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')

